package business;

import java.util.List;

import dao.IVideoDAO;
import dao.JDBCVideoDAO;
import domain.Video;

public class BusinessVideo {
	
	public static List<Video> getAllVideos(){
		IVideoDAO videoDAO = new JDBCVideoDAO();
		//IVideoDAO videoDAO = new LibCSVVideoDAO();
		return videoDAO.getAllVideos();
	}
	
	public static List<Video> getAllVideosByGenre(String genre){
		IVideoDAO videoDAO = new JDBCVideoDAO();
		//IVideoDAO videoDAO = new LibCSVVideoDAO();
		return videoDAO.getAllVideosByGenre(genre);
	}
	
	public static List<Video> getAllVideosStartingWithLetter(char letter){
		IVideoDAO videoDAO = new JDBCVideoDAO();
		//IVideoDAO videoDAO = new LibCSVVideoDAO();
		return videoDAO.getAllVideosStartingWithLetter(letter);
	}
	
	public static Video getVideoByTitle(String title){
		
		IVideoDAO videoDAO = new JDBCVideoDAO();
		//IVideoDAO videoDAO = new LibCSVVideoDAO();
		return videoDAO.getVideoByTitle(title);
	}
}
